package org.onvivals.module.iot.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.onvivals.module.iot.entity.IotDevice;

public interface IIotDeviceService extends IService<IotDevice>{


	boolean insertDeviceAuto(String deviceNumber, Long userId,String code,String blId);

	IotDevice autoDevice(String deviceNumber, Long userId,String code,String blId);

	/**
	 * 根据设备编号查询设备
	 *
	 * @param serialNumber 设备编号
	 * @return
	 */
	IotDevice selectDeviceBySerialNumber(String serialNumber,Long userId);

	IotDevice selectDeviceBySerialNumber(String serialNumber);

	boolean reportDevice(IotDevice device, IotDevice deviceEntity);
}
